/**
 * @filename:ScancodeService May 7, 2024
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.Scancode;
import com.wonder.app.request.ScancodeRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Map;
/**   
 * @Description:TODO(追溯信息服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface ScancodeService extends IService<Scancode> {

    
    /**
     * 验证追溯信息信息
     * 
     * @param scancode
     * @param type
     * @return 结果
     */
    public String validate(Scancode scancode,String type);   
   
	
	 /**
	 * Description:追溯信息分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<Scancode>   //分页记录
	 */
    public IPage<Scancode> selectList(ScancodeRequest request, Page<Scancode> page);


	/**
	 * 生成追溯码信息
	 * @param count
	 * @return
	 */
	boolean saveScanCode(Long count) throws Exception;

	/**
	 * 获取追溯码详情数据
	 * @param billNo
	 * @return
	 */
    Map<String,Object> getDetail(String billNo);
}
